xend: passthrough: loosen the pci co-assignment for pv guest
authorKeir Fraser <keir.fraser@citrix.com>
Sun, 2 Aug 2009 11:27:51 +0000 (12:27 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Sun, 2 Aug 2009 11:27:51 +0000 (12:27 +0100)
commit2cdf870d540bb63c625407350492987410b981e3
tree891daffe6f59b8b5f86a0b60e4724d74e7cd61d6
parent2707e9adc1b265b60e1cac27cc96c32658675518
xend: passthrough: loosen the pci co-assignment for pv guest

In current xend, we can not assign co-assignment devices to different
guests, even for pv guests. This patch loosens the policy for pv
guest: if none of the co-assignment devices have been assigned to hvm
guest, we can assign the devices to different pv guests.

The patch also adds a detection: if a device has been assigned to
guest, we can't try to "xm pci-attach" it to the same guest again.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/python/xen/util/pci.py
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/pciif.py
tools/python/xen/xm/main.py